package com.scau.ums.mapper;


import com.scau.ums.model.Repairmaterial;
import com.scau.ums.model.Repairresult;
import com.scau.ums.model.Repairtaskorder;
import com.scau.ums.util.dao.RepairReportSql;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.UpdateProvider;

import java.util.List;

public interface CustomedFillRepairResult_Material {
    @InsertProvider(method = "FillRepairResult",type= RepairReportSql.class)
    public void FillRepairResult(Repairresult repairResult);
    @InsertProvider(method="FillRepairMaterial",type=RepairReportSql.class)
    public void FillRepairMaterial(Repairmaterial repairMaterial);
    @SelectProvider(method="CheckRepairResultExistence",type=RepairReportSql.class)
    public Repairresult CheckRepairResultExistence(Integer repairorderid);
    @UpdateProvider(method="rewriteRepairResult",type=RepairReportSql.class)
    public void rewriteRepairResult(Repairresult repairResult);
    @SelectProvider(method="UpdateRepairResultState",type=RepairReportSql.class)
    public void UpdateRepairResultState(Integer repairReportId);
    @SelectProvider(method="getMaterialNumber",type = RepairReportSql.class)
    public int getMaterialNumber(String searchKeyword);
    @SelectProvider(method="getTaskMaterialListByLimit",type = RepairReportSql.class)
    public List<Repairtaskorder> getTaskMaterialListByLimit(Integer start, Integer number, String searchKeyword);
    @SelectProvider(method="getResultNumber",type=RepairReportSql.class)
    public int getResultNumber();
    @SelectProvider(method="getRepairTaskOrderIds",type = RepairReportSql.class)
    public List<Integer> getRepairTaskOrderIds(Integer start, Integer number);
}

